package com.wing.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.common.utils.PageResult;
import com.wing.product.model.entity.WarehouseOrderDetail;
import com.wing.product.model.response.WarehouseOrderDetailVO;
import com.wing.product.model.response.WarehouseOrderInfoDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarehouseOrderDetailDao extends BaseMapper<WarehouseOrderDetail> {
    List<WarehouseOrderDetailVO> pageList4app(@Param("page") Page<WarehouseOrderDetail> pg, @Param("params")  Map<String, Object>  paramMap);

    List<WarehouseOrderInfoDetailVO> findOrderDetailListByOrderId(@Param("id") Long id , @Param("type") String type);

    WarehouseOrderDetail findByOrderDetailCode(@Param("orderCode")String orderCode);
}